var express = require('express');
var router = express.Router();
const controller = require ('../controller/talkController.js')

/* GET home page. */
router.post('/',controller.addTalk);
router.get('/',controller.findTalk);
// 查找单个
router.get('/single',controller.findTalkSingle)
// 删除
router.delete('/:id',controller.delTalk);
// 修改说说
router.put('/',controller.updateTalk)


module.exports = router;